<template>
	<view class="page_trans">
		<!-- 中转页面，处理横屏后返回竖屏样式问题 -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				backDelta: null
			};
		},
		created() {

		},
		onLoad(option) {
			let backDelta = 2;
			if (!this.$utils.isEmpty(option)) {
				backDelta = option.backDelta || 2
			}
			uni.navigateBack({
				delta: backDelta,
				success() {
					setTimeout(() => {
						plus.screen.lockOrientation('portrait-primary');
					}, 100);
				},
			})

		},
		onUnload() {

		}

	}
</script>

<style lang="scss">
	page {
		background: transparent;
		height: 100vh;
	}

	.page_trans {
		background: transparent;
		height: 100vh;
		width: 100vw;
	}
</style>